<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>


<div class="t_bar"><span class="color_red">*</span>1、项目概述</div>
<table id="tblMileStones1" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <col style="width:34%"/>
    <col style="width:40%"/>
    <col style="width:13%"/>
    <col style="width:13%"/>
    <tr>
        <td align="left" colspan="4">
            聚焦我国尤其是我省重点产业产业链高质量发展面临的共性“卡脖子”技术问题，现有技术与国外同类技术对比情况(注明国外对标企业及主要指标)，现有研究基础及差距，防范重大科技风险、打破国外垄断、实现国产替代的紧迫性、必要性、对产业高质量发展的促进作用及意义。（限1000字）
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <textarea name="project/summary1" style="width:98%" class="input_textarea required maxlength:1000"
                      label="1、项目概述" rows=5 cols=60><x:out select="$xmlData/data/project/summary1"/></textarea>
            <input type="hidden" name="project/summary1_hidden" id="project/summary1_hidden"
                   value="<x:out select="$xmlData/data/project/summary1" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>2、主要研究内容和目标</div>
<table id="tblMileStones2" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <col style="width:34%"/>
    <col style="width:40%"/>
    <col style="width:13%"/>
    <col style="width:13%"/>
    <tr>
        <td align="left" colspan="4">研究攻克的关键核心技术关键点，包括技术难点突破、创新点。项目研究方案、技术路线、组织方式、资金需求等。（限3000字）</td>
    </tr>
    <tr>
        <td colspan="4">
            <textarea name="project/summary2" style="width:98%" class="input_textarea required maxlength:3000"
                      label="2、主要研究内容和目标" rows=5 cols=60><x:out select="$xmlData/data/project/summary2"/></textarea>
            <input type="hidden" name="project/summary2_hidden" id="project/summary2_hidden"
                   value="<x:out select="$xmlData/data/project/summary2" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>3、预期取得的标志性成果</div>
<table id="tblMileStones3" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <col style="width:34%"/>
    <col style="width:40%"/>
    <col style="width:13%"/>
    <col style="width:13%"/>
    <tr>
        <td align="left" colspan="4">攻克的关键核心技术可考核的的主要技术性能指标，与国外最先进水平性能指标的比较及差距（注明国外对标企业及主要指标）,取得的标志性成果形式。（限1000字）</td>
    </tr>
    <tr>
        <td colspan="4">
            <textarea name="project/summary3" style="width:98%" class="input_textarea required maxlength:1000"
                      label="3、预期取得的标志性成果" rows=5 cols=60><x:out select="$xmlData/data/project/summary3"/></textarea>
            <input type="hidden" name="project/summary3_hidden" id="project/summary3_hidden"
                   value="<x:out select="$xmlData/data/project/summary3" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>4、申请单位简况</div>
<table id="tblMileStones4" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <col style="width:34%"/>
    <col style="width:40%"/>
    <col style="width:13%"/>
    <col style="width:13%"/>
    <tr>
        <td align="left" colspan="4">
            牵头单位情况（生产经营及科研情况、资产及经济状况等），有合作单位的，还须介绍合作单位技术优势，在项目中的作用，各单位之间的分工等。项目负责人情况、项目组主要成员简况。（限600字）
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <textarea name="project/summary4" style="width:98%" class="input_textarea required maxlength:600"
                      label="4、申请单位简况" rows=5 cols=60><x:out select="$xmlData/data/project/summary4"/></textarea>
            <input type="hidden" name="project/summary4_hidden" id="project/summary4_hidden"
                   value="<x:out select="$xmlData/data/project/summary4" />"/>
        </td>
    </tr>
</table>

<div class="t_bar"><span class="color_red">*</span>5、技术、经济效益、市场风险分析</div>
<table id="tblMileStones5" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <col style="width:34%"/>
    <col style="width:40%"/>
    <col style="width:13%"/>
    <col style="width:13%"/>
    <tr>
        <td align="left" colspan="4">
            对提升产业整体竞争力、上下游产业链创新能力的带动作用，预期产生的经济效益、社会效益分析，推广应用及成果转化的预期分析，项目实施可能面临的风险及化解措施。（限500字）
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <textarea name="project/summary5" style="width:98%" class="input_textarea required maxlength:500"
                      label="5、技术、经济效益、市场风险分析" rows=5 cols=60><x:out
                    select="$xmlData/data/project/summary5"/></textarea>
            <input type="hidden" name="project/summary5_hidden" id="project/summary5_hidden"
                   value="<x:out select="$xmlData/data/project/summary5" />"/>
        </td>
    </tr>
</table>

<%--div class="t_bar"><span class="color_red">*</span>6、立项意义和应用前景（限500字）</div>
<table id="tblMileStones1" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
               <col style="width:34%"/>
               <col style="width:40%"/>
               <col style="width:13%"/>
               <col style="width:13%"/>
           <!-- 	<tr>
                       <td align="left" colspan="4">技术经济效益分析（含经济效益、社会效益）、推广应用前景分析（含产业化可行性）、项目实施的风险分析。（限500字）</td>
               </tr> -->
               <tr>
                   <td colspan="4">
                       <textarea name="project/summary6" style="width:98%" class="input_textarea required maxlength:500" label="6、立项意义和应用前景" rows=5 cols=60><x:out select="$xmlData/data/project/summary6" /></textarea>
                       <input type="hidden" name="project/summary6_hidden" id="project/summary6_hidden" value="<x:out select="$xmlData/data/project/summary6" />"/>
                   </td>
               </tr>
</table> --%>
<div class="t_bar">6、项目承担单位、合作单位分工（第一行为承担单位）</div>
<table id="inland1" border="0" cellspacing="0" cellpadding="0" style="width: 100%" class="table01 t_css">
    <thead>
    <tr>
        <th align="center" width="5%">选择</th>
        <th align="center" width="5%">序号</th>
        <th align="center" width="30%">单位名称</th>
        <th align="center" width="60%">分工（限500字）</th>

    </tr>
    </thead>
    <tbody id="inland_tab">
    <tr style="display: none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selAttendOrg11">
        </td>
        <td align="center">
            <span name="inlands1|inland[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input name="inlands1|inland[0]|org_name" label="单位名称" type="text" id="org_name1_[0]"  onchange="setCooperationUnits1();" required class="input_css required" style="width: 80%;" maxlength="100" value="" />
        </td>

        <td align="center">
            <textarea name="inlands1|inland[0]|divisions" style="width:98%" class="input_textarea required maxlength:500"
                      label="分工" rows=5 cols=60></textarea>
            <input type="hidden" name="inlands1|inland[0]|divisions_hidden" id="inlands1|inland[0]|divisions_hidden"
                   value=""/>
        </td>
    </tr>
    <c:set value="0" var="index" scope="page" />
    <x:forEach select="$xmlData/data/inlands1/inland" var="inland">

        <c:choose>
            <c:when test="${index<10}">
                <c:set value="0" var="flag" scope="page" />
            </c:when>
            <c:otherwise>
                <c:set value="" var="flag" scope="page" />
            </c:otherwise>
        </c:choose>
        <tr align="center">
            <td>
                <input type="radio" class="radiobutton" name="selAttendOrg11">
            </td>
            <td align="center">
					<span name="inlands1/inland[${flag}${index}]@seq_no">
						<x:out select="$inland/@seq_no" />
					</span>
            </td>
            <td>
                <input name="inlands1/inland[${flag}${index}]/org_name" id="org_name1_[${flag}${index}]"  onchange="setCooperationUnits1();" label="单位名称" type="text" required class="input_css required" style="width: 80%;" maxlength="100"
                       value="<x:out select="$inland/org_name" />" />
            </td>

            <td align="center">
                <textarea name="inlands1/inland[${flag}${index}]/divisions" style="width:98%" class="input_textarea required maxlength:500"
                          label="分工" rows=5 cols=60><x:out select="$inland/divisions" /></textarea>
                <input type="hidden" name="inlands1/inland[${flag}${index}]/divisions_hidden" id="inlands1/inland[${flag}${index}]/divisions_hidden"
                       value="<x:out select="$inland/divisions" />"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page" />
    </x:forEach>
    </tbody>
</table>
<table width="100%" class="not_table">
    <tr>
        <td>
            <input class="button_02" type="button" name="cmdAddbefore" value="添加" onclick="if(checkTabLimit('inland1',6,'项目承担单位、合作单位分工最多只能填写6条')){addNewRow('inland1');}try{top.resizeFrame();}catch(e){};setCooperationUnits1();" />
            <input class="button_02" name="cmdMovePrev" type="button" value="上移" onclick="movePrev('inland1');setCooperationUnits1();" />
            <input class="button_02" name="cmdMoveNext" type="button" value="下移" onclick="moveNext('inland1');setCooperationUnits1();" />
            <input class="button_02" name="cmddel" type="button" value="删除" onclick="deleteSelectedRow('inland1','项目承担单位、合作单位分工');setCooperationUnits1();" />
        </td>
    </tr>
</table>
<input type="hidden" name="proposal/cooperation_units1" id="cooperation_units1" value="<x:out select='$xmlData/data/proposal/cooperation_units1'/>"/>
<script>
    $(function(){
        setCooperationUnits1();
    });
    function setCooperationUnits1(){
        var cooperation_units1="";
        $("#inland1 tr:gt(1)").each(function(index){
            var cooperation_unit1 = $(this).find("td:eq(2) input").val().trim();
            /*var orgName1 = $("#org_name").val().trim();*/
            if(!isBlankOrNull(cooperation_unit1) ){
                cooperation_units1 += cooperation_unit1+",";
            }
        });
        if(cooperation_units1!=""){
            cooperation_units1=cooperation_units1.substring(0,cooperation_units1.length-1);
        }
        $("#cooperation_units1").val(cooperation_units1);
    }
    function isBlankOrNull(str){
        if(str.trim()==""){
            return true;
        }else if(str){
            return false;
        }else{
            return true;
        }
    }
</script>
